package com.tchhy.mvplibrary.ui.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.tchhy.mvplibrary.presenter.BasePresenter
import com.tchhy.mvplibrary.presenter.view.BaseView
import com.tchhy.provider.rx.BaseException

/**
 * 每个业务Fragment必须实现
 *
 * Author: wfy
 *
 * time: 2018/8/22
 *
 */
abstract class BaseMvpLazyFragment<T : BasePresenter<*>> : BaseLazyFragment(), BaseView {

    lateinit var mPresenter: T
    lateinit var mLoadingView: View
    lateinit var mErrorView: View
    lateinit var mEmptyView: View

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return super.onCreateView(inflater, container, savedInstanceState)
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
    }

    override fun showLoading() {
    }

    override fun dismissLoading() {
    }

    override fun onError(throwable: BaseException) {
    }


    override fun onDestroy() {
        super.onDestroy()
    }




}